# $OpenBSD: Makefile,v 1.14 2015/03/27 08:15:03 ajacoutot Exp $

SHARED_ONLY=		Yes

COMMENT=		Flash plugin for Mozilla browsers

V=			0.8.2
DISTNAME=		swfdec-mozilla-$V
PKGNAME=		swfdec-plugin-$V
REVISION=		7
CATEGORIES=		graphics www

HOMEPAGE=		http://swfdec.freedesktop.org/

# LGPLv2.1
PERMIT_PACKAGE_CDROM=	Yes

MASTER_SITES=		${HOMEPAGE}/download/swfdec-mozilla/${V:R}/

MODULES=		devel/gettext

WANTLIB=	X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
		Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
		freetype gdk-x11-2.0 gdk_pixbuf-2.0 gcrypt gio-2.0 glib-2.0 \
		gmodule-2.0 gnutls gobject-2.0 gpg-error gstpbutils-0.10 \
		gstreamer-0.10 gthread-2.0 gtk-x11-2.0 m oil-0.3 pango-1.0 \
		pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs \
		sndio soup-2.4 swfdec-0.8 swfdec-gtk-0.8 tasn1 xcb xcb-render \
		xcb-render-util xml2 z

LIB_DEPENDS=	graphics/swfdec
RUN_DEPENDS=	x11/gtk+3,-guic


CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-plugin-dir="${LOCALBASE}/lib/mozilla/plugins/"
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.mk>
